package br.com.escolaespacocrianca.fineec.model;


import javax.persistence.Entity;
import javax.persistence.OneToOne;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

@Entity
public class OtherSponsor extends BaseEntity  {

	private String name;
	private String email;
	private KinshipDegree degree;
	
	@OneToOne
	@Cascade(value={CascadeType.ALL})
	private PhoneNumberInfo phoneInfo; 	
	
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public KinshipDegree getDegree() {
		return degree;
	}
	public void setDegree(KinshipDegree degree) {
		this.degree = degree;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public PhoneNumberInfo getPhoneInfo() {
		return phoneInfo;
	}
	public void setPhoneInfo(PhoneNumberInfo phoneInfo) {
		this.phoneInfo = phoneInfo;
	}
	
	
}
